    /********************************************************/
    /*                                                      */
    /*                                                      */
    /*         Copyright (C), 1993  SEIKO EPSON Corp.       */
    /*         ALL RIGHTS RESERVED                          */
    /*                                                      */
    /*                                                      */
    /*  file name : freopen.c                               */
    /*                                                      */
    /*  Revision history                                    */
    /*      93/12/17    first release       S.Akaiwa        */
    /*      97/3/17	modified	    T.Katahira	    */
    /*			change function declaration	    */
    /*					to the ANSI style   */
    /*                                                      */
    /********************************************************/

#ifdef      UNIX
#include    "stdio.h"
#include    "errno.h"
#else
#include    <stdio.h>
#include    <errno.h>
#endif

FILE    *
freopen(const char * sFilNamP, const char * sOpnModP, FILE * fiStrmP)

    /********************************************************/
    /*                                                      */
    /*  This is dummy function.                             */
    /*  The freopen function always returns NULL pointer.   */
    /*  "No such file or directory" is set to the errno.    */
    /*                                                      */
    /*      RETURN  NULL    ... Error                       */
    /*                                                      */
    /*  <ANSI>                                              */
    /*      The freopen function closes current stream, and */
    /*      re-opens file to current stream.                */
    /*                                                      */ 
    /*      RETURN  NULL    ... Error                       */
    /*              Others  ... Pointer to the stream of    */
    /*                          re-open file                */
    /*                                                      */
    /********************************************************/
    
    /* const char  *sFilNamP ; string of new open file name */
    /* const char  *sOpnModP ;          string of open mode */
    /* FILE    *fiStrmP    ;      pointer to target stream */
{
	fclose(fiStrmP);
	return fopen(sFilNamP, sOpnModP);
}

